package com.wl.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 测试控制器
 *
 * @author wl
 */
@Controller
public class TestController {
  @RequestMapping(method = RequestMethod.GET, value = "/test")
  public String getPage(Model model) {
    model.addAttribute("txt", " 你好, spring 和 和 velocity!");
    return "test";
  }
}
